﻿using STSdb4.Database;
using System;
using System.IO;
using System.Linq.Expressions;

namespace STSdb4.Core.Test
{
    class Program
    {
        static void Main(string[] args)
        {

            //Expression.Call("aaa", typeof(string).GetMethod("GetHashCode"));

            var dbFile = "f:\\test.db";
            dbFile.GetHashCode();
            if (File.Exists(dbFile))
                File.Delete(dbFile);
            using (var engine = STSdb.FromFile(dbFile))
            {
                //写入自定义配置
                var table_config = engine.OpenXTable<string, string>("test");
                table_config["aaa"] = "bbb";
                engine.Commit();
            }

            //var xxx = "xxx".GetHashCode()
        }
    }
}
